home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
General
/
Menu Events 1.1.2
/
Menu Events Help
/
Menu Events Help.rsrc
/
STR#_1029.txt
< prev
next >
Wrap
Text File
|
1994-04-20
|
13KB
|
735 lines
noSuchMenuItemErr -21001
noSuchMenuErr -21000
menuItemDisabledErr -21002
menuEventPendingErr -21003
kMEEventClass 'Mænu'
keyShiftKeyPressed 'shik'
keyOptionKeyPressed 'optk'
keyMenuTitle 'mnti'
keyMenuMDEFID 'mndf'
keyMenuItemText 'mite'
keyMenuItemStyle 'mist'
keyMenuItemMark 'mima'
keyMenuItemID 'miid'
keyMenuItemIcon 'miic'
keyMenuItemEnabled 'mien'
keyMenuItemCmd 'micm'
keyMenuID 'mnid'
keyMenuEventsTattoo 'Mænu'
keyMenuEnabled 'mnen'
keyControlKeyPressed 'conk'
keyCommandKeyPressed 'comk'
kAEMESelectMenuItem 'semi'
kAEMEQueryMenuList 'qmn#'
kAEMEQueryMenu 'qmn '
Constant Value
xConstants defined in the Menu Events suite
on this application
is already pending
-21003 Another Menu event
menuEventPendingErr
disabled
-21002 The item is
menuItemDisabledErr
such item
-21001 The menu has no
noSuchMenuItemErr
no such menu
noSuchMenuErr -21000 The application has
with remote processes
extension is locked)
or (if Menu Events
with other processes
refusing to interact
-1713 The application is
errAENoUserInteraction
no menu bar
mBarNFnd -126 The application has
Result Codes
Required or Optional? Required
Descriptor Type: typeNull
the event
that Menu Events handled
Description: A null parameter to verify
keyMenuEventsTattoo
Reply Parameters
Default Value: false
Required or Optional? Optional
Descriptor Type: typeBoolean
simulated menu selection
pressed at the time of the
Description: Whether the Command key is
keyCommandKeyPressed
Default Value: false
Required or Optional? Optional
Descriptor Type: typeBoolean
simulated menu selection
pressed at the time of the
Description: Whether the Option key is
keyOptionKeyPressed
Default Value: false
Required or Optional? Optional
Descriptor Type: typeBoolean
simulated menu selection
pressed at the time of the
Description: Whether the Control key is
keyControlKeyPressed
Default Value: false
Required or Optional? Optional
Descriptor Type: typeBoolean
simulated menu selection
pressed at the time of the
Description: Whether the Shift key is
keyShiftKeyPressed
Required or Optional? Required
Descriptor Type: typeShortInteger
from 1 at the top of the menu
Description: The ID of the item, numbered
keyMenuItemID
Required or Optional? Required
Descriptor Type: typeShortInteger
List Apple event
returned by a Query Menu
Description: The ID of the menu, as
keyMenuID
Parameters
Event ID kAEMESelectMenuItem
Event Class kMEEventClass
refuses to interact with remote processes (kAEInteractWithLocal mode).
another machine and the Menu Events extension has been locked, if it
other processes (kAEInteractWithSelf mode), or, if the application is on
menu item. Interaction will fail if the application refuses to interact with
in the usual way, the result is as if the user had actually selected that
event is correctly handled, and the application reacts to the mouse events
of the given menu item, with modifier key states as specified. If the Menu
application to the front, then posts mouse events to simulate the selection
A Select Menu Item event requests user interaction to bring the
xSelect Menu Item - perform a menu command
no such menu
noSuchMenuErr -21000 The application has
no menu bar
mBarNFnd -126 The application has
Result Codes
Required or Optional? Required
Descriptor Type: typeNull
the event
that Menu Events handled
Description: A null parameter to verify
keyMenuEventsTattoo
Required or Optional? Required
Descriptor Type: typeShortInteger
lower byte
character of the item, in the
Description: The Command-key equivalent
keyMenuItemCmd
Required or Optional? Required
Descriptor Type: typeShortInteger
in the lower byte
Description: The style value of the item,
keyMenuItemStyle
Required or Optional? Required
Descriptor Type: typeShortInteger
'cicn' resource
resource ID of the 'ICON' or
which is 256 less than the
Description: The icon number of the item,
keyMenuItemIcon
Required or Optional? Required
Descriptor Type: typeShortInteger
item, in the lower byte
Description: The mark character of the
keyMenuItemMark
Required or Optional? Required
Descriptor Type: typeBoolean
enabled
Description: Whether or not the item is
keyMenuItemEnabled
Required or Optional? Required
Descriptor Type: typeChar
it appears in the menu
Description: The text of the item, as
keyMenuItemText
Required or Optional? Required
Descriptor Type: typeShortInteger
from 1 at the top of the menu
Description: The ID of the item, numbered
keyMenuItemID
Required or Optional? Required
Descriptor Type: typeAEList
following parameters
item, each containing the
records, one for each
Description: A list of Apple event
keyDirectObject
Reply Parameters
Required or Optional? Required
Descriptor Type: typeShortInteger
List Apple event
returned by a Query Menu
Description: The ID of the menu, as
keyMenuID
Parameters
Event ID kAEMEQueryMenu
Event Class kMEEventClass
referenced by the keyMenuItemIcon parameter.
complete enough to reconstruct the menu, except for the icon resources
containing information about all items in a given menu. This information is
A Query Menu Apple event asks the application to return a list of records
xQuery Menu - list all items in a menu
no menu bar
mBarNFnd -126 The application has
Result Codes
Required or Optional? Required
Descriptor Type: typeNull
the event
that Menu Events handled
Description: A null parameter to verify
keyMenuEventsTattoo
Required or Optional? Required
Descriptor Type: typeShortInteger
is not a resource
that the definition procedure
ordinarily 0; -1 signifies
procedure ('MDEF') resource,
Description: The ID of the menu definition
keyMenuMDEFID
Required or Optional? Required
Descriptor Type: typeBoolean
a whole, is enabled
Description: Whether or not the menu, as
keyMenuEnabled
Required or Optional? Required
Descriptor Type: typeChar
it appears in the menu bar
Description: The title of the menu, as
keyMenuTitle
Required or Optional? Required
Descriptor Type: typeShortInteger
it may have come from
ID of the 'MENU' resource
necessarily equal to the
Description: The ID of the menu, not
keyMenuID
Required or Optional? Required
Descriptor Type: typeAEList
following parameters
menu, each containing the
records, one for each
Description: A list of Apple event
keyDirectObject
Reply Parameters
Parameters none
Event ID kAEMEQueryMenuList
Event Class kMEEventClass
Help, Keyboard, or Application menus.
in its menu bar. This information includes the Apple menu, but not the
records containing information about all menus defined by the application
A Query Menu List Apple event asks the application to return a list of
xQuery Menu List - list all application-defined menus
Select Menu Item Perform a menu command
Query Menu List all items in a menu
Query Menu List List all application-defined menus
Name Requested action
xApple events defined in the Menu Events suite
parameters.
Script,” which demonstrates the usage of the following events and
This package also includes a sample script, “Menu Events Sample
information, for the benefit of scripting packages such as AppleScript.
contains an 'aete' resource which records the following dictionary
definitions which appear here. The “Menu Events Scripting Addition” file
NOTE: The C header file “Menu Events.h” contains the constant
used in the Apple Event Registry.
The following is a formal description of the Menu Events suite, in the form
åMenu Events Suite
§
§